home *** CD-ROM | disk | FTP | other *** search
/ Delphi Magazine Collection 2001 / Delphi Magazine Collection 20001 (2001).iso / DISKS / Issue65 / pools / uDBPoolTest.dfm < prev    next >
Encoding:
Text File  |  2000-11-26  |  5.9 KB  |  263 lines

  1. object frmTimeTest: TfrmTimeTest
  2.   Left = 318
  3.   Top = 103
  4.   Width = 602
  5.   Height = 430
  6.   Caption = 'DBPool / Queue Time Test'
  7.   Color = clBtnFace
  8.   Font.Charset = DEFAULT_CHARSET
  9.   Font.Color = clWindowText
  10.   Font.Height = -11
  11.   Font.Name = 'MS Sans Serif'
  12.   Font.Style = []
  13.   OldCreateOrder = False
  14.   OnCloseQuery = FormCloseQuery
  15.   OnCreate = FormCreate
  16.   OnDestroy = FormDestroy
  17.   OnShow = FormShow
  18.   PixelsPerInch = 96
  19.   TextHeight = 13
  20.   object StatusBar: TStatusBar
  21.     Left = 0
  22.     Top = 384
  23.     Width = 594
  24.     Height = 19
  25.     Panels = <>
  26.     SimplePanel = True
  27.   end
  28.   object PageControl: TPageControl
  29.     Left = 0
  30.     Top = 0
  31.     Width = 594
  32.     Height = 384
  33.     ActivePage = TabSheet2
  34.     Align = alClient
  35.     TabOrder = 1
  36.     object TabSheet1: TTabSheet
  37.       Caption = 'Setup'
  38.       object Label1: TLabel
  39.         Left = 8
  40.         Top = 12
  41.         Width = 65
  42.         Height = 13
  43.         Caption = 'DB Pool Max:'
  44.       end
  45.       object Label2: TLabel
  46.         Left = 153
  47.         Top = 12
  48.         Width = 68
  49.         Height = 13
  50.         Caption = 'Queue Factor:'
  51.       end
  52.       object Label3: TLabel
  53.         Left = 11
  54.         Top = 40
  55.         Width = 62
  56.         Height = 13
  57.         Alignment = taRightJustify
  58.         Caption = 'DB Location:'
  59.       end
  60.       object Label4: TLabel
  61.         Left = 9
  62.         Top = 68
  63.         Width = 64
  64.         Height = 13
  65.         Alignment = taRightJustify
  66.         Caption = 'IB Username:'
  67.       end
  68.       object Label5: TLabel
  69.         Left = 215
  70.         Top = 68
  71.         Width = 62
  72.         Height = 13
  73.         Alignment = taRightJustify
  74.         Caption = 'IB Password:'
  75.       end
  76.       object Label6: TLabel
  77.         Left = 25
  78.         Top = 96
  79.         Width = 48
  80.         Height = 13
  81.         Alignment = taRightJustify
  82.         Caption = 'SQL Text:'
  83.       end
  84.       object Label7: TLabel
  85.         Left = 296
  86.         Top = 12
  87.         Width = 61
  88.         Height = 13
  89.         Alignment = taRightJustify
  90.         Caption = 'Queue Mgrs:'
  91.       end
  92.       object seDBPoolMax: TSpinEdit
  93.         Left = 76
  94.         Top = 8
  95.         Width = 43
  96.         Height = 22
  97.         MaxValue = 0
  98.         MinValue = 0
  99.         TabOrder = 0
  100.         Value = 5
  101.       end
  102.       object seFactor: TSpinEdit
  103.         Left = 222
  104.         Top = 8
  105.         Width = 43
  106.         Height = 22
  107.         MaxValue = 0
  108.         MinValue = 0
  109.         TabOrder = 1
  110.         Value = 3
  111.       end
  112.       object eDBLoc: TEdit
  113.         Left = 76
  114.         Top = 36
  115.         Width = 325
  116.         Height = 21
  117.         TabOrder = 2
  118.         Text = 
  119.           'C:\Program Files\InterBase Corp\InterBase\examples\database\empl' +
  120.           'oyee.gdb'
  121.       end
  122.       object eUsername: TEdit
  123.         Left = 76
  124.         Top = 64
  125.         Width = 121
  126.         Height = 21
  127.         TabOrder = 3
  128.         Text = 'Sysdba'
  129.       end
  130.       object ePassword: TEdit
  131.         Left = 280
  132.         Top = 64
  133.         Width = 121
  134.         Height = 21
  135.         TabOrder = 4
  136.         Text = 'masterkey'
  137.       end
  138.       object mSQL: TMemo
  139.         Left = 76
  140.         Top = 92
  141.         Width = 501
  142.         Height = 257
  143.         Lines.Strings = (
  144.           'Select * from SALES')
  145.         TabOrder = 5
  146.       end
  147.       object seMgrs: TSpinEdit
  148.         Left = 358
  149.         Top = 8
  150.         Width = 43
  151.         Height = 22
  152.         MaxValue = 0
  153.         MinValue = 0
  154.         TabOrder = 6
  155.         Value = 1
  156.       end
  157.     end
  158.     object TabSheet2: TTabSheet
  159.       Caption = 'Time Test'
  160.       ImageIndex = 1
  161.       object bStartOne: TButton
  162.         Left = 4
  163.         Top = 40
  164.         Width = 101
  165.         Height = 25
  166.         Caption = 'Start One Thread'
  167.         Enabled = False
  168.         TabOrder = 0
  169.         OnClick = bStartOneClick
  170.       end
  171.       object bOpenAllDB: TButton
  172.         Left = 4
  173.         Top = 8
  174.         Width = 101
  175.         Height = 25
  176.         Caption = 'Open All DBs'
  177.         TabOrder = 1
  178.         OnClick = bOpenAllDBClick
  179.       end
  180.       object bCloseAllDB: TButton
  181.         Left = 4
  182.         Top = 128
  183.         Width = 101
  184.         Height = 25
  185.         Caption = 'Close All DBs'
  186.         Enabled = False
  187.         TabOrder = 2
  188.         OnClick = bCloseAllDBClick
  189.       end
  190.       object bStopAll: TButton
  191.         Left = 4
  192.         Top = 96
  193.         Width = 101
  194.         Height = 25
  195.         Caption = 'Stop All Threads'
  196.         Enabled = False
  197.         TabOrder = 3
  198.         OnClick = bStopAllClick
  199.       end
  200.       object bStopOne: TButton
  201.         Left = 4
  202.         Top = 64
  203.         Width = 101
  204.         Height = 25
  205.         Caption = 'Stop One Thread'
  206.         Enabled = False
  207.         TabOrder = 4
  208.         OnClick = bStopOneClick
  209.       end
  210.       object sgTimes: TStringGrid
  211.         Left = 108
  212.         Top = 8
  213.         Width = 477
  214.         Height = 345
  215.         ColCount = 6
  216.         DefaultRowHeight = 16
  217.         FixedCols = 0
  218.         RowCount = 1
  219.         FixedRows = 0
  220.         GridLineWidth = 0
  221.         Options = [goFixedVertLine, goFixedHorzLine, goVertLine, goHorzLine, goRowSelect]
  222.         ScrollBars = ssVertical
  223.         TabOrder = 5
  224.       end
  225.       object bClearAll: TButton
  226.         Left = 4
  227.         Top = 184
  228.         Width = 101
  229.         Height = 25
  230.         Caption = 'Clear All Times'
  231.         TabOrder = 6
  232.         OnClick = bClearAllClick
  233.       end
  234.       object bRefreshTimes: TButton
  235.         Left = 4
  236.         Top = 208
  237.         Width = 101
  238.         Height = 25
  239.         Caption = 'Refresh Time List'
  240.         TabOrder = 7
  241.         OnClick = bRefreshTimesClick
  242.       end
  243.     end
  244.   end
  245.   object DBPool: TIBDatabasePool
  246.     MaxConnections = 5
  247.     DatabaseName = 'c:\IBDB\employee.gdb'
  248.     Params.Strings = (
  249.       'USER_NAME=Sysdba'
  250.       'PASSWORD=masterkey')
  251.     AutoOpen = False
  252.     Left = 4
  253.     Top = 164
  254.   end
  255.   object QueryQueue: TIBQueryQueue
  256.     IBDatabasePool = DBPool
  257.     MaxQueueFactor = 3
  258.     QueueManagers = 1
  259.     Left = 4
  260.     Top = 196
  261.   end
  262. end
  263.